package Test1;

public class Magagers extends Person{
    private String responsibilities;
    private Employees[] employ = new Employees[3];
    public int count = 0;
    public void setEmploy(Employees employees)
    {
        this.employ[count] = employees;
        this.count+=1;
    }
    public void employPrint(){
        for (int i = 0; i < 3; i++) {
            System.out.println("我管理的员工有:"+this.employ[i].name);
        }
    }
    public void income(){
        System.out.println("管理员的工资是:");
    }
    public void lucky(){
        System.out.println("管理员的福利是");
    }
    public Magagers(){
        this(0, "", "", "", "");
    }
    public Magagers(int employeeNumber, String name, String address, String phoneNumber, String responsibilities)
    {
        this.employeeNumber = employeeNumber;
        this.name = name;
        this.address = address;
        this.phoneNumber = phoneNumber;
        this.responsibilities = responsibilities;
    }
    public String getName(){
        return this.name;
    }
    public int getEmployeeNumber(){
        return this.employeeNumber;
    }
    public String getAddress()
    {
        return this.address;
    }
    public String getPhoneNumber(){
        return this.phoneNumber;
    }
    public String getResponsibilities(){
        return this.responsibilities;
    }
    public void setResponsibilities(String responsibilities){
        this.responsibilities = responsibilities;
    }
    public void setName(String name){
        this.name = name;
    }
    public void setAddress(String  address){
        this.address = address;
    }
    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }
    public void MagagersPrint(){
        System.out.println("这个管理者的员工号是:"+this.getEmployeeNumber()+"  "+"名字是："+this.getName()+"  "+"家庭住址:"+this.getAddress()+"   "+"电话号码:"+this.getPhoneNumber()+"  "+"职责是:"+this.getResponsibilities());
    }
}
